package com.cyys.service.impl;

import com.cyys.entity.Sites;
import com.cyys.mapper.SitesMapper;
import com.cyys.service.SitesService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author Long
 * @since 2022-06-21
 */
@Service
public class SitesServiceImpl extends ServiceImpl<SitesMapper, Sites> implements SitesService {

    @Override
    public List<Sites> Sites_id(Sites sites) {
        return this.baseMapper.Sites_id(sites);
    }

    /**
     * 查询默认
     * @param uid
     * @return
     */
    @Override
    public List<Sites> sites_defaults(Integer uid) {
        return this.baseMapper. sites_defaults (uid);
    }

    @Override
    public List<Sites> sites_Limit(Integer uid) {
        return this.baseMapper.sites_Limit(uid);
    }

    @Override
    public boolean updateDefaults(Integer user_id) {
        return this.baseMapper.updateDefaults(user_id);
    }

    @Override
    public boolean updates(Sites sites) {
         return this.baseMapper.updates(sites);
    }

    @Override
    public List<Sites> sitesuid(Sites sites) {
        return this.baseMapper.sitesuid(sites);
    }


}
